
<%@ page contentType="text/html;charset=UTF-8" %>

<script type="text/javascript">
function show_alert()
{
  
  alert("Sending");
  
}
</script>

<html>
  <head>
    <gui:resources components="['richEditor']"/>
    <meta name="layout" content="adminMain"/>
    <title>Send Newsletter</title>
  
  </head>
  <body>
            <div id="contentText">
          <h2><span>Send out</span>Newsletter</h2>
        </div>
    <div style="margin-left: 50px;">
    ${flash.message}
    
    <form name="sendnewsletter" action="sendnewsletter">
      
     Subject:
     <g:textArea name="subject" id="subject" rows="1" cols="50" style="width:90%; height:30px"/><br/>
      
      Body: 
      <gui:richEditor id='body' value='Insert your email body here' width="90%"/></br>
      
      <input type="submit" value="Send" action="sendnewsletter" onclick="show_alert()"/>
    </form>
    </div>
    
  </body>
</html>